package com.apollow.oschina.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.apollow.oschina.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by bobo on 2017/1/13.
 */

public class AddressActivity extends AppCompatActivity {
    @BindView(R.id.et_url)
    EditText mEtUrl;
    @BindView(R.id.et_port)
    EditText mEtPort;
    @BindView(R.id.btn_keep)
    Button mBtnKeep;
    @BindView(R.id.btn_close)
    Button mBtnClose;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_address);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.btn_keep, R.id.btn_close})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_keep:
                Toast.makeText(this,"保存",Toast.LENGTH_SHORT).show();
                break;
            case R.id.btn_close:
                Toast.makeText(this,"清除",Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
